package com.qfedu.lc.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 8.用户收费会员表
 * </p>
 *
 * @author wgz
 * @since 2024-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_vip")
public class Vip implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户表id
     */
    private Integer userId;

    /**
     * 收费会员的类型 1.年卡 2.银卡 3.金卡
     */
    private Integer type;

    /**
     * 开始日期
     */
    private Date sdate;

    /**
     * 结束日期
     */
    private Date edate;

    /**
     * 会员的总天数
     */
    private Integer days;

    /**
     * 描述
     */
    private String info;

    /**
     * 创建时间
     */
    private Date ctime;

    public Vip() {
    }

    public Vip(Integer userId, Integer type, Date sdate, Date edate, Integer days, String info, Date ctime) {
        this.userId = userId;
        this.type = type;
        this.sdate = sdate;
        this.edate = edate;
        this.days = days;
        this.info = info;
        this.ctime = ctime;
    }
}
